<?php

class Common_DataTable_Persistence_Factory {

    const STRATEGY_FILE = 'persistence.strategy.file';
    
    public function __construct() {
    }
    
    public function create($enm_type, Common_DataTable $obj_datatable, $arr_options = array()) {
        
        $obj_strategy = null;

        switch($enm_type) {
            case self::STRATEGY_FILE:
            default:
                $obj_strategy = new Common_DataTable_Persistence_File($obj_datatable, $arr_options);
                break;
        }
        
        return $obj_strategy;
        
    }
    
}

